package org.apache.dubbo.spi.gen;

import org.apache.dubbo.common.bytecode.Wrapper;
import org.apache.dubbo.spi.domain.Woman;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/8/7 11:07
 */
public class WrapperDemo {
    public static void main(String[] args) {
        Wrapper w = Wrapper.getWrapper(Woman.class);
        System.out.println(w);


//        instance.getClass(), (Class<?>) w.invokeMethod(instance, "getClass", null, null);
//       instance.hashCode(), (int) w.invokeMethod(instance, "hashCode", null, null));
//        Assertions.assertTrue((boolean) w.invokeMethod(instance, "equals", null, new Object[]{instance}));
       // Assertions.assertEquals(instance.toString(), (String) w.invokeMethod(instance, "toString", null, null));

    }
}
